import request from 'utils/request'

// 获取Token
export function getToken() {
  return request({
    url: '/Authorize/Token',
    method: 'post'
  })
}

// 刷新Token
export function refreshToken() {
  return request({
    url: '/Authorize/RefreshToken',
    method: 'post',
    data: {
      Token: localStorage.getItem('Token'),
      RefreshToken: localStorage.getItem('RefreshToken')
    }
  })
}

// 获取Token
export function RegisterByWeixin(params) {
  return request({
    url: '/Authorize/RegisterByWeixin',
    method: 'post',
    data: params
  })
}
